﻿using System;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using LTJ.Common;
using LTJ.Web.UI;
using LTJ.FrameWork;

namespace uswinweb.datacontrol
{
    /// <summary>
    /// 企业管理员控件
    /// </summary>
    public partial class corpmanagerList : BaseWebControl
    {
        protected string parpms = LTJ.Common.Utils.UrlDecode(SASRequest.GetString("parms").Trim());
        protected string search_txt_name = SASRequest.GetString("search_txt_name").Trim();
        protected string delparm = SASRequest.GetString("delstr").Trim();
        private string strWhere = "";
        private string orderstr = "";

        public override void ShowUserControl()
        {
            if (delparm != "")
            {
                Users.DeleteCorpManagerAuth(delparm);
            }

            showdiv = "corpmanagedata";
            strWhere = Users.GetCorpManagerCondition(search_txt_name);
            RowsCount = Users.GetCorpManagerAuthCount(strWhere);
            dataDT = Users.GetCorpManagerAuthList(PageIndex, PageSize, strWhere);
            GetPageList("search_txt_name=" + search_txt_name + "&parms=" + parpms);
        }
    }
}